﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Output;
using Model = Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.Menus
{
    /// <summary>
    /// 菜单信息
    /// </summary>
    public interface IMenuBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 根据权限获取数据
        /// </summary>
        /// <returns></returns>
        List<Model.Menus> GetMenus();

        /// <summary>
        /// 删除菜单信息
        /// </summary>
        /// <param name="UnitId"></param>
        /// <returns></returns>
        bool Delete(object menus);
        /// <summary>
        /// 根据编码获取信息
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        Model.Menus GetByCode(string Code);

        /// <summary>
        /// 根据父级编号获取数据
        /// </summary>
        /// <param name="ParentCode"></param>
        /// <returns></returns>
        double GetSequenceByParentCode(string ParentCode);

        /// <summary>
        /// 根据父级编码查询子集编码
        /// </summary>
        /// <returns></returns>
        List<Model.Menus> GetMenusByParentCode(object id);
        /// <summary>
        /// 获取菜单下所有角色
        /// </summary>
        /// <param name="MenuId"></param>
        /// <returns></returns>
        List<ExtMenus_Roles> Roles(long MenuId);

        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="Roles"></param>
        /// <returns></returns>
        bool AddRoles(List<Model.Menus_Roles> Roles,long menuId);
    }
}
